package visitor.original;

import java.util.ArrayList;
import java.util.List;

public class Test {

    public static void main(String[] args) {
        List<ResourceFile> files = new ArrayList<>();
        files.add(new PPTFile("a.ppt"));
        files.add(new ExcelFile("b.excel"));
        files.stream().forEach(file ->{
            file.file2Txt();
        });
    }
}
